package com.travel.modules.asset.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.travel.commons.validator.groups.AddGroup;
import com.travel.commons.validator.groups.UpdateGroup;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @TableName scenic_area
 */
@Data
@TableName("scenic_area")
public class ScenicArea implements Serializable {
    /**
     * 
     *
     */
    @TableId
    private Integer id;

    /**
     * 景区编号
     *
     */
    @NotBlank(message = "景点编号不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String areaId;

    /**
     * 发布者id
     */
    private Integer userId;
    @TableField(exist = false)
    private String loginName;
    @TableField(exist = false)
    private Integer roleId;
    @TableField(exist = false)
    private String username;

    /**
     * 父级区域id
     *
     */
    @NotNull(message = "父级区域不能为空", groups = {AddGroup.class})
    private Integer parentAreaId;
    @TableField(exist = false)
    private String parentAreaName;

    /**
     * 景区名称
     *
     */
    @NotBlank(message = "景区名称不能为空", groups = {AddGroup.class})
    private String name;

    /**
     * 地址
     *
     */
    @NotBlank(message = "地址不能为空", groups = {AddGroup.class})
    private String address;

    /**
     * 状态：0-未审核，1-审核通过，2-已撤销，-1 -未通过
     */
    private Integer status;

    /**
     * 简介
     *
     */
    @NotBlank(message = "简介不能为空", groups = {AddGroup.class})
    private String introduction;

    /**
     * 图片url
     *
     */
    private String pic;

    /**
     * 省级地区下的景点数
     *
     */
    private Integer spotCount;

    /**
     * 录入时间
     *
     */
    private Date createTime;

    /**
     * 热度
     */
    private Integer hot;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table scenic_area
     *
     */
    private static final long serialVersionUID = 1L;
}